<td><input type="checkbox" name="id[]" value="{$vo.id}"></td>
<td>{$vo.id}</td>
<td>{$vo.user_id}</td>
<td><a title="详细资料" href="javascript:;" onclick="driverInfo({$vo.user_id})" style="text-decoration:none">
    {$vo.realname}:{$vo.account}
    </a>
</td>
<td>{$vo.start_time??"--"}</td>
<td>{$vo.end_time??"--"}</td>
<td>{:html_entity_decode($vo.remark)}</td>
<td>{$vo.reason}</td>
{eq name="vo.leave_status" value="agree"}
<td>同意</td>
{/eq}
{eq name="vo.leave_status" value="refuse"}
<td>拒绝</td>
{/eq}
{eq name="vo.leave_status" value="apply"}
<td>申请中</td>
{/eq}
{eq name="vo.isagreee" value="0"}
<td>不同意</td>
{else/}
<td>同意</td>
{/eq}
<td>{$vo.handle_user}</td>

<script>
    function driverInfo(user_id) {
        var url = '/admin/leave/details';
        if (!user_id){
            layer.msg('缺少必要的参数');
        }
        $.ajax({
            type: 'get',
            url: url,
            data:{ user_id: user_id },
            success: function (data) {
                if (data.code == 1){
                    layer.msg(data.msg)
                    return false
                }else{
                    layer_open('详细资料','/admin/leave/details/user_id/'+user_id,{w:'1300px',h:'750px'})
                }
            }
        })
    }
</script>